package com.uw.scenic;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableCircuitBreaker //熔断降级功能
@EnableScheduling   //开启定时任务
@EnableFeignClients //通过feign调用其他微服务
@EnableEurekaClient
@SpringBootApplication
@MapperScan("com.uw.scenic.mapper")   //对mapper的扫描
public class TemplateApplication {
    public static void main(String[] args) {
        SpringApplication.run(TemplateApplication.class, args);
    }
}
